﻿Namespace DataContract
    Public Class SecurityUser
        Public SecurityUserId As Integer
        Public Name As String
        Public Email As String
        Public IsGroup As Boolean
        Public Roles As ICollection(Of SecurityRole)
    End Class

    Public Class SecurityRole
        Public SecurityRoleId As Integer
        Public Name As String
        Public Description As String
        Public Members As ICollection(Of SecurityUser)
        Public Access As ICollection(Of SecurityRoleAccess)
    End Class

    Public Class SecurityRoleAccess
        Public SecurityRoleAccessId As Integer
        Public ObjectyType As String
        Public ObjectId As Integer?
        Public Permissions As Integer
    End Class
End Namespace